-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Remove drafts silliness from examples #1785
Conversation
|
size-limit report 📦
|
docs/package.json
Outdated
@@ -12,7 +12,7 @@ | |||
"node": ">= 10.x" | |||
}, | |||
"dependencies": { | |||
"@primer/gatsby-theme-doctocat": "^3.1.0", | |||
"@primer/gatsby-theme-doctocat": "0.0.0-2022011123325", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval assumes this will be updated after your doctocat PR merges
@@ -130,7 +130,8 @@ | |||
"jsx-a11y/label-has-for": 0, | |||
"@typescript-eslint/no-unnecessary-condition": 0, | |||
"@typescript-eslint/no-unused-vars": 0, | |||
"primer-react/no-deprecated-colors": ["error", {"skipImportCheck": true}] | |||
"primer-react/no-deprecated-colors": ["error", {"skipImportCheck": true}], | |||
"no-redeclare": 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this for code blocks so that we can write this block ⬇️ without adding a // eslint-ignore
inside the code block
// ESM
import {ActionList} from '@primer/react/lib-esm/drafts'
// or commonjs:
import {ActionList} from '@primer/react/lib/drafts'
Update: Brought in changes from #1778 to this PR |
@colebemis I think we're ready here! |
Checklist:
Alpha
components can't be used despite being available in the documentation. #1768Problem:
Because
drafts
is scoped, we have some implementation detail silliness in the examples:before:
Solution: By making
live-code-scope
accept a function (doctocat/332), we can make scope dynamic based on metastring:after, so clean, yay: